package com.durian.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.durian.domain.DTO.ObsDefaultListDTO;
import com.durian.domain.DTO.ObsOrderAddDTO;
import com.durian.domain.DTO.ObsOrderListOnUserDTO;
import com.durian.domain.DTO.ObsOrderUpdateDTO;
import com.durian.domain.VO.ObsOrderVO;
import com.durian.domain.entity.ObsOrder;
import com.durian.utils.PageInfoResult;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author Durian
 * @since 2023-11-23
 */
public interface IObsOrderService extends IService<ObsOrder> {

    /**
     * 获取订单列表
     */
    PageInfoResult<ObsOrderVO> listOrder(ObsDefaultListDTO defaultListDTO);

    /**
     * 获取用户的订单
     */
    List<ObsOrderVO> listUserOrder(ObsOrderListOnUserDTO listOnUserDTO);

    /**
     * 添加订单
     */
    void addOrder(ObsOrderAddDTO orderAddDTO);

    /**
     * 移除订单
     */
    void removeOrder(List<Long> ids);

    /**
     * 更新订单
     */
    void updateOrder(ObsOrderUpdateDTO orderUpdateDTO);
}
